@extends('auth.assets.master')

@section('page-title', '重置密码')

@section('page-content')
    <!-- BEGIN REGISTER FORM -->
    <form class="form-horizontal login-form" action="{{ url('/backend/password/reset') }}" method="post">
        <h3 class="form-title">Reset Password:</h3>
        <div class="alert alert-error hide">
            <button class="close" data-dismiss="alert"></button>
            <span>Enter any username and password.</span>
        </div>
        <div class="form-group">
            <label for="email" class="control-label sr-only">Verify Your Email</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-envelope"></span>
                <input type="text" class="form-control form-input input-icon" name="email" id="email" placeholder="Verify Your Email"/>
            </div>
        </div>
        <div class="form-group hidden">
            <label for="token" class="control-label sr-only">Token</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-envelope"></span>
                <input type="text" class="form-control form-input input-icon" name="token" id="token" value="{{ $token }}"/>
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="control-label sr-only">New Password</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-lock"></span>
                <input type="password" class="form-control form-input input-icon" name="password" id="password" placeholder="New Password"/>
            </div>
        </div>
        <div class="form-group">
            <label for="password_confirmation" class="control-label sr-only">Re-type Your New Password</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-ok"></span>
                <input type="password" class="form-control form-input input-icon" name="password_confirmation" id="password_confirmation" placeholder="Re-type Your New Password"/>
            </div>
        </div>

        {{ csrf_field() }}
        <div class="form-actions border-bottom-none">
            <label class="checkbox">
                <div class="checker">
                            <span>
                                <input type="checkbox" name="remember" value="1">
                            </span>
                </div>
                I agree to the <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>
            </label>
            <div class="btn-actions">
                <a id="register-back-btn" type="button" class="btn" href="{{ URL::previous() }}">
                    <span class="glyphicon glyphicon-circle-arrow-left"></span>  Back
                </a>
                <button type="submit" id="register-submit-btn" class="btn green pull-right">
                    Sign Up <span class="glyphicon glyphicon-circle-arrow-right"></span>
                </button>
            </div>
        </div>
    </form>
    <!-- END REGISTRATION FORM -->
@endsection